var verify_length1 = "string-length(translate(., ' ', '')) <= 20";
var verify_length2 = "string-length(translate(., ' ', '')) >= 1";
var xpath_expr = ".//a[@rel='next' or (" + verify_length1 + " and " + verify_length2 + " and (" + expr1s.join(" or ") + " or " + expr2s.join(" or ") + "))]";
//alert(xpath_expr);
return function(contextNode) {
var result = document.evaluate(xpath_expr, contextNode, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var nodes = [];
for(var i = 0; i < result.snapshotLength; i++)
{
nodes.push(result.snapshotItem(i));
}
return nodes;
};
};
var $a_text_tester = function(keyword)
{
keyword += " ";
var verify_length1 = "string-length(translate(., ' ', '')) <= 20";
var verify_length2 = "string-length(translate(., ' ', '')) >= 1";